import Vue from 'vue'
import Router from 'vue-router'
import Market from '@/pages/market/market.vue'
import Login from '@/pages/login/login.vue'
import Circle from '@/pages/market/circle/circleIndex.vue'
import userLogin from '@/pages/user/userLogin.vue'
import userSignUp from '@/pages/user/userSignUp.vue'
import dataIndex from '@/pages/data/dataIndex.vue'
import dayInList from '@/pages/data/dayInList.vue'
import dayInDeatail from '@/pages/data/dayInDeatail.vue'
import dayOutList from '@/pages/data/dayOutList.vue'
import dayOutDeatail from '@/pages/data/dayOutDeatail.vue'
import dayProfitList from '@/pages/data/dayProfitList.vue'
import dayProfitDeatail from '@/pages/data/dayProfitDeatail.vue'
import userData from '@/pages/data/userData'
import userDataDetail from '@/pages/data/userDataDetail'

import CircleDetail from '@/pages/market/circle/circleDetail.vue'
import ListenIndex from '@/pages/market/listen/listenIndex.vue'
import BookDetail from '@/pages/market/listen/bookDetail.vue'
import vipCard from '@/pages/market/vipCard/vipCardIndex.vue'
import MakeOffer from '@/pages/market/circle/MakeOffer.vue'
import sureAddress from '@/pages/market/vipCard/sureAddress.vue'
import sureOrder from '@/pages/market/circle/sureOrder.vue'
import SearchCircle from '@/pages/market/circle/searchCircle.vue'
import SearchBook from '@/pages/market/listen/searchBook.vue'
import SearchMicro from '@/pages/market/micro/searchMicro.vue'
import TryListen from '@/pages/market/listen/try.vue'
import postShare from '@/pages/market/postShare.vue'
import postOfferShare from '@/pages/market/postOfferShare.vue'
import MicroIndex from '@/pages/market/micro/microIndex.vue'
import MicroDetail from '@/pages/market/micro/microDetail.vue'
import MicroAudio from '@/pages/market/micro/microAudio.vue'
import MicroList from '@/pages/market/micro/floor-group.vue'
import MicroSure from '@/pages/market/micro/microSure.vue'
import ListenSure from '@/pages/market/listen/listenSure.vue'
// 我的
import Me from '@/pages/me/index.vue'
// 我的设置
import mySetting from '@/pages/me/setting/my_setting.vue'
import changePasswd from '@/pages/me/setting/change_passwd.vue'
import myAddress from '@/pages/me/setting/my_address.vue'
import addAddress from '@/pages/me/setting/add_address.vue'
import editAddress from '@/pages/me/setting/edit_address.vue'
// 我的订单
import myOrder from '@/pages/me/order/my_order.vue'
import orderInfo from '@/pages/me/order/order_info.vue'
// 我的代理商
import myBusiness from '@/pages/me/agent/my_business.vue'
import agentItem from '@/pages/me/agent/agent_item.vue'
// 我的提现
import tixian from '@/pages/me/tixian/tixian.vue'
import zhangdanInfo from '@/pages/me/tixian/zhangdan_info.vue'
import tixianRecord from '@/pages/me/tixian/tixian_record.vue'
// 我的席位
import Seat from '@/pages/me/seat/seat.vue'
// 我的二维码
import Qrcode from '@/pages/me/qrcode/qrcode.vue'
//下载条
import download from '@/components/download.vue'
//焦点
import focus from '@/pages/focus/focus.vue'
import comment from '@/pages/focus/comment.vue'
import mindMain from '@/pages/focus/mind_main.vue'
import maudioDetail from '@/pages/focus/audio_detail.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'AgentLogin',
      component: Login
    },
    //市场首页面
    {
      path: '/market',
      name: 'Market',
      component: Market,
      meta: {
        title: '市场'
      },
    },
    //圈子首页
    {
      path: '/circle',
      name: 'Circle',
      component: Circle,
      meta: {
        title: '圈子',
        keepAlive: true
      }
    },
    {
      path: '/searchCircle',
      name: 'SearchCircle',
      component: SearchCircle,
      meta: {
        title: '搜索圈子'
      }
    },
    {
      path: '/makeOffer',
      name: 'makeOffer',
      component: MakeOffer,
      meta: {
        title: '我要报价'
      }
    },
    {
      path: '/searchbook',
      name: 'SearchBook',
      component: SearchBook,
      meta: {
        title: '搜索每日听书'
      }
    },
    {
      path: '/searchmicro',
      name: 'SearchMicro',
      component: SearchMicro,
      meta: {
        title: '搜索微说'
      }
    },
    {
      path: '/circleDetail',
      name: 'CircleDetail',
      component: CircleDetail
    },
    {
      path: '/listen',
      name: 'ListenIndex',
      component: ListenIndex,
      meta: {
        title: '每日听书'
      }
    },
    {
      path: '/bookDetail',
      name: 'BookDetail',
      component: BookDetail,
      meta: {
        title: '书籍详情'
      }
    },
    {
      path: '/try',
      name: 'TryListen',
      component: TryListen
    },
    {
      path: '/vip',
      name: 'vipCard',
      component: vipCard
    },
    {
      path: '/sure',
      name: 'sureAddress',
      component: sureAddress,
      meta: {
        title: '确认订单'
      }
    },
    {
      path: '/circlesure',
      name: 'sureOrder',
      component: sureOrder,
      meta: {
        title: '确认订单'
      }
    },
    {
      path: '/listenSure',
      name: 'ListenSure',
      component: ListenSure,
      meta: {
        title: '确认订单'
      }
    },
    {
      path: '/post',
      name: 'postShare',
      component: postShare,
      meta: {
        title: '生成海报图'
      }
    },
    {
      path: '/postOffer',
      name: 'postOfferShare',
      component: postOfferShare,
      meta: {
        title: '海报图'
      }
    },
    {
      path: '/micro',
      name: 'MicroIndex',
      component: MicroIndex,
      meta: {
        title: '微说'
      }
    },
    {
      path: '/microdetail',
      name: 'MicroDetail',
      component: MicroDetail
    },
    {
      path: '/microAudio',
      name: 'MicroAudio',
      component: MicroAudio
    },
    {
      path: '/microlist',
      name: 'MicroList',
      component: MicroList
    },
    {
      path: '/microsure',
      name: 'MicroSure',
      component: MicroSure,
      meta: {
        title: '确认订单'
      }
    },
    {
      path: '/user/login',
      name: 'userLogin',
      component: userLogin,
      meta: {
        title: '登录'
      }
    },
    {
      path: '/user/signUp',
      name: 'userSignUp',
      component: userSignUp,
      meta: {
        title: '注册'
      }
    },
		{
			path: '/data',
			name: 'dataIndex',
      component: dataIndex,
      meta: {
        title: '数据'
      }
		},
		{
			path: '/data/dayInList',
			name: 'dayInList',
      component: dayInList,
      meta: {
        title: '日收入明细'
      }
		},
		{
			path: '/data/dayInDeatail',
			name: 'dayInDeatail',
      component: dayInDeatail,
      meta: {
        title: '收入详情'
      }
    },
    {
			path: '/data/dayOutList',
			name: 'dayOutList',
      component: dayOutList,
      meta: {
        title: '日支出明细'
      }
		},
		{
			path: '/data/dayOutDeatail',
			name: 'dayOutDeatail',
      component: dayOutDeatail,
      meta: {
        title: '支出详情'
      }
    },
    {
			path: '/data/dayProfitList',
			name: 'dayProfitList',
      component: dayProfitList,
      meta: {
        title: '分润收入明细'
      }
		},
		{
			path: '/data/dayProfitDeatail',
			name: 'dayProfitDeatail',
      component: dayProfitDeatail,
      meta: {
        title: '收入详情'
      }
    },
    {
			path: '/data/userData',
			name: 'userData',
      component: userData,
      meta: {
        title: '用户数据'
      }
    },
    {
			path: '/data/userDataDetail',
			name: 'userDataDetail',
      component: userDataDetail,
      meta: {
        title: '用户数据'
      }
		},
    {  // me
      path: '/me',
      name: 'me',
      component: Me,
      meta: {
        title: '我'
      }
    },
    {
      path: '/my_setting',
      name: 'mySetting',
      component: mySetting,
      meta: {
        title: '设置'
      }
    },
    {
      path: '/change_passwd',
      name: 'changePasswd',
      component: changePasswd,
      meta: {
        title: '修改密码'
      }
    },
    {
      path: '/my_address',
      name: 'myAddress',
      component: myAddress,
      meta: {
        title: '我的收货地址'
      }
    },
    {
      path: '/add_address',
      name: 'addAddress',
      component: addAddress,
      meta: {
        title: '新建收货地址'
      }
    },
    {
      path: '/edit_address/:id',
      name: 'editAddress',
      component: editAddress,
      meta: {
        title: '修改收货地址'
      }
    }, {
      path: '/my_order',
      name: 'myOrder',
      component: myOrder,
      meta: {
        title: '我的订单'
      }
    },
    {
      path: '/my_business',
      name: 'myBusiness',
      component: myBusiness,
      meta: {
        title: '我的代理商'
      }
    }, {
      path: '/agent_item/:id',
      name: 'agentItem',
      component: agentItem,
      meta: {
        title: '详情'
      }
    },{
      path: '/order_info/:id',
      name: 'orderInfo',
      component: orderInfo,
      meta: {
        title: '订单详情'
      }
    },{
      path: '/tixian',
      name: 'tixian',
      component: tixian,
      meta: {
        title: '提现'
      }
    },{
      path: '/tixian_record',
      name: 'tixianRecord',
      component: tixianRecord,
      meta: {
        title: '提现记录'
      }
    },{
      path: '/zhangdan_info/:id',
      name: 'zhangdanInfo',
      component: zhangdanInfo,
      meta: {
        title: '账单详情'
      }
    },{
      path: '/seat',
      name: 'seat',
      component: Seat,
      meta: {
        title: '我的席位'
      }
    },{
      path: '/qrcode',
      name: 'Qrcode',
      component: Qrcode,
      meta: {
        title: '我的二维码'
      }
    } , {
      path: '/focus',
      name: 'focus',
      component: focus,
       meta: {
        title: '焦点'
      },
  }, {
      path: '/comment',
      name: 'comment',
      component: comment,
       meta: {
        title: '评论'
      },
  },
  {
    path: '/mind_main',
    name: 'mindmain',
    component: mindMain,
    meta: {
      title: '大咖说'
    },
  },
  {
    path: '/maudio_detail/',
    name: 'audiodetail',
    component: maudioDetail,
    meta: {
      title: '微说详情'
    },
  },
  {
      path: '/',
      name: 'download',
      component: download
    },
  ]
})
